<template>
  <a-modal v-bind="attrs" :maskClosable="false" :keyboard="false" :closable="false" :footer="null" title="" width="420px">
    <div class="submit-tip-modal">
      <a-result status="success" title="下单成功!">
        <template #extra>
          <a-button type="primary" @click="() => emit('keepOrder')">继续下单</a-button>
          <!-- <a-button @click="makeInvoiceHandle">制作发票</a-button> -->
          <a-button @click="() => emit('goPreOrder')">查看运单</a-button>
        </template>
      </a-result>
    </div>
  </a-modal>
</template>

<script lang="ts" setup>
import { useAttrs } from "vue";
const emit = defineEmits<{
  (e: "keepOrder"): void;
  (e: "goPreOrder"): void;
}>();
const attrs = useAttrs();
</script>
<style lang="stylus" scoped>
.submit-tip-modal{
    :deep(.ant-btn){
        width: 100%;
        margin-bottom: 24px;
    }
}
</style>
